import { Button as AntdButton } from "antd"
import { CommonComponentProps } from "../../interface"

const Button = ({ type, text, styles, onClick }: CommonComponentProps) => {
  console.log("onClick", onClick)
  return (
    <AntdButton type={type} style={styles} onClick={onClick}>
      {text}
    </AntdButton>
  )
}

export default Button
